package com.aspose.cells;

class zwn extends zcj {
   zwn(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var3 = new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var4 = new com.aspose.cells.b.a.b.zo[3];
      float var2 = var1.h() / 2.0F;
      switch(this.e.a) {
      case 1:
         var4[0] = new com.aspose.cells.b.a.b.zo(var2 + this.g, this.h);
         var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() + this.h);
         var4[2] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() + this.h);
         break;
      case 2:
         var4[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
         var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, this.h);
         var4[2] = new com.aspose.cells.b.a.b.zo(var2 + this.g, var1.i() + this.h);
         break;
      case 3:
         var4[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
         var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, this.h);
         var4[2] = new com.aspose.cells.b.a.b.zo(var2 + this.g, var1.i() + this.h);
         break;
      case 4:
         var4[0] = new com.aspose.cells.b.a.b.zo(var2 + this.g, this.h);
         var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() + this.h);
         var4[2] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() + this.h);
      }

      var3.a(var4[0], var4[1]);
      var3.a(var4[1], var4[2]);
      var3.a(var4[2], var4[0]);
      var3.i();
      return var3;
   }

   void b(com.aspose.cells.b.a.b.zq var1) {
      var1 = this.c(var1);
      super.b(var1);
   }

   private com.aspose.cells.b.a.b.zq c(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.zo[] var3 = new com.aspose.cells.b.a.b.zo[3];
      float var2 = var1.h() / 2.0F;
      switch(this.e.a) {
      case 1:
         var3[0] = new com.aspose.cells.b.a.b.zo(var2 + this.g, this.h);
         var3[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() + this.h);
         var3[2] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() + this.h);
         break;
      case 2:
         var3[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
         var3[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, this.h);
         var3[2] = new com.aspose.cells.b.a.b.zo(var2 + this.g, var1.i() + this.h);
         break;
      case 3:
         var3[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
         var3[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, this.h);
         var3[2] = new com.aspose.cells.b.a.b.zo(var2 + this.g, var1.i() + this.h);
         break;
      case 4:
         var3[0] = new com.aspose.cells.b.a.b.zo(var2 + this.g, this.h);
         var3[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() + this.h);
         var3[2] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() + this.h);
      }

      float var4 = (var3[2].d() + var3[0].d()) / 2.0F;
      float var5 = (var3[2].e() + var3[0].e()) / 2.0F;
      float var6 = (var3[1].d() + var3[0].d()) / 2.0F - var4;
      float var7 = var1.i() / 2.0F;
      com.aspose.cells.b.a.b.zq var8 = new com.aspose.cells.b.a.b.zq(var4, var5, var6, var7);
      return var8;
   }
}
